package o;

import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.huawei.appgallery.packagemanager.api.bean.ManagerTask;

public class bpk implements boj {
    private final coa ˊ = ((coa) bkt.ˋ("PackageManager", coa.class));
    private final Context ˋ = ContentManager.getInstant().getContext();
    private final cnw ˎ = ((cnw) bkt.ˋ("PackageManager", cnw.class));

    public void ˏ(@NonNull cof o_cof) {
        boc.ˎ.ˋ("InstallManager", "install, installId: " + o_cof.ˎ());
        this.ˎ.ˋ(this.ˋ, o_cof);
    }

    public boolean ˏ(long j, String str) {
        boc.ˎ.ˋ("InstallManager", "cancelInstall, installId: " + j + ", pkgName: " + str);
        if (this.ˎ.ॱ(this.ˋ, str, j) == 1) {
            return true;
        }
        return false;
    }

    public void ॱ(@NonNull col o_col) {
        boc.ˎ.ˋ("InstallManager", "uninstall, installId: " + o_col.ˎ());
        this.ˎ.ˋ(this.ˋ, o_col);
    }

    @Nullable
    public ManagerTask ˏ(long j) {
        return this.ˊ.ˋ(j);
    }
}
